package com.backend.service;

import com.backend.entity.entity.Devices;
import com.backend.entity.entity.Users;
import com.backend.entity.entity.WorkOrders;
import java.util.List;

public interface AdminService {
    List<Users> getAllUsers();
    boolean deleteUserByUsername(String username);
    List<Users> getUserByUsername(String username);
    List<WorkOrders> getAllOrders();
    boolean deleteOrderById(Integer orderId);
    List<WorkOrders> getOrdersByDeviceCode(String deviceCode);
    boolean updateOrderStatus(Integer orderId, Integer status, String deviceCode, Integer repairmanId);
    Devices addDevice(Devices device);
    List<Devices> getAllDevices();
    boolean deleteDeviceById(Integer deviceId);
    Devices updateDevice(Devices device);
    Devices getDeviceByCode(String deviceCode);
}
